package com.jffccloud.auth.model;

import com.jffccloud.common.model.BaseModel;

import java.io.Serializable;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;


public class SysUser extends BaseModel {

//    private static final long serialVersionUID = -285114752051350000L;
    private String userId;
    private String username;
    private String name;
    private Integer userLevel;
    private String password;
    private Date expireddate;
    private String expireddate_ftm;
    private Integer expired;
    private String admin_id;
    private String org_id;
    private String is_leader;
    private Timestamp login_time;
    private String login_ip;
    private Timestamp last_time;
    private String last_ip;
    private String ipconfig;
    private Integer user_type;
    private Date birthday;
    private String idcard;
    private String email;
    private String mobile;
    private String address;
    private Integer sex;
    private String post_id;
    private String creator;
    private Timestamp createTime;
    private Timestamp modify_time;
    private Integer order_no;
    private String ftm_user_level;
    private String org_name;
    private String fromExpireddate;
    private String toExpireddate;
    private Integer beginRowNo;
    private Integer endRowNo;
    private String IsAdmin;
    private String auth_enabled;
    private String condition;
    private String remark;
    private String photo;
    private String exUserId;
    private String inUserId;
    private String isAuthorized;
    private String idField;//角色授权用户是用到的唯一标识
    private String is_logic;
    private String userCode;
    private Integer org_type;
    private String create_time_str;

    private String org_code;
    /**
     * 启用 禁用  禁用账户不能 登录
     */
    private boolean isUse;

    public boolean getIsUse() {
        return isUse;
    }

    public void setIsUse(boolean isUse) {
        this.isUse = isUse;
    }

    public String getOrg_code() {
        return org_code;
    }

    public void setOrg_code(String org_code) {
        this.org_code = org_code;
    }

    public Integer getOrg_type() {
        return org_type;
    }

    public void setOrg_type(Integer org_type) {
        this.org_type = org_type;
    }

    public String getInUserId() {
        return inUserId;
    }

    public void setInUserId(String inUserId) {
        this.inUserId = inUserId;
    }

    public String getExUserId() {
        return exUserId;
    }

    public void setExUserId(String exUserId) {
        this.exUserId = exUserId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(Integer userLevel) {
        this.userLevel = userLevel;
    }

    public Date getExpireddate() {
        return expireddate;
    }

    public void setExpireddate(Date expireddate) {
        this.expireddate = expireddate;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getExpired() {
        return expired;
    }

    public void setExpired(Integer expired) {
        this.expired = expired;
    }

    public String getAdmin_id() {
        return admin_id;
    }

    public void setAdmin_id(String admin_id) {
        this.admin_id = admin_id;
    }

    public String getOrg_id() {
        return org_id;
    }

    public void setOrg_id(String org_id) {
        this.org_id = org_id;
    }

    public Timestamp getLogin_time() {
        return login_time;
    }

    public void setLogin_time(Timestamp login_time) {
        this.login_time = login_time;
    }

    public String getLogin_ip() {
        return login_ip;
    }

    public void setLogin_ip(String login_ip) {
        this.login_ip = login_ip;
    }

    public Timestamp getLast_time() {
        return last_time;
    }

    public void setLast_time(Timestamp last_time) {
        this.last_time = last_time;
    }

    public String getLast_ip() {
        return last_ip;
    }

    public void setLast_ip(String last_ip) {
        this.last_ip = last_ip;
    }

    public String getIpconfig() {
        return ipconfig;
    }

    public void setIpconfig(String ipconfig) {
        this.ipconfig = ipconfig;
    }

    public Integer getUser_type() {
        return user_type;
    }

    public void setUser_type(Integer user_type) {
        this.user_type = user_type;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getPost_id() {
        return post_id;
    }

    public void setPost_id(String post_id) {
        this.post_id = post_id;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getModify_time() {
        return modify_time;
    }

    public void setModify_time(Timestamp modify_time) {
        this.modify_time = modify_time;
    }

    public Integer getOrder_no() {
        return order_no;
    }

    public void setOrder_no(Integer order_no) {
        this.order_no = order_no;
    }

    public String getFtm_user_level() {
        return ftm_user_level;
    }

    public void setFtm_user_level(String ftm_user_level) {
        this.ftm_user_level = ftm_user_level;
    }

    public String getOrg_name() {
        return org_name;
    }

    public void setOrg_name(String org_name) {
        this.org_name = org_name;
    }

    public String getFromExpireddate() {
        return fromExpireddate;
    }

    public void setFromExpireddate(String fromExpireddate) {
        this.fromExpireddate = fromExpireddate;
    }

    public Integer getBeginRowNo() {
        return beginRowNo;
    }

    public void setBeginRowNo(Integer beginRowNo) {
        this.beginRowNo = beginRowNo;
    }

    public Integer getEndRowNo() {
        return endRowNo;
    }

    public void setEndRowNo(Integer endRowNo) {
        this.endRowNo = endRowNo;
    }

    public String getToExpireddate() {
        return toExpireddate;
    }

    public void setToExpireddate(String toExpireddate) {
        this.toExpireddate = toExpireddate;
    }

    public String getIsAdmin() {
        return IsAdmin;
    }

    public void setIsAdmin(String isAdmin) {
        IsAdmin = isAdmin;
    }


    public String getAuth_enabled() {
        return auth_enabled;
    }

    public void setAuth_enabled(String auth_enabled) {
        this.auth_enabled = auth_enabled;
    }

    public String getCondition() {
        return condition;
    }

    public void setCondition(String condition) {
        this.condition = condition;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getIs_leader() {
        return is_leader;
    }

    public void setIs_leader(String is_leader) {
        this.is_leader = is_leader;
    }

    public String getExpireddate_ftm() {
        return expireddate_ftm;
    }

    public void setExpireddate_ftm(String expireddate_ftm) {
        this.expireddate_ftm = expireddate_ftm;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getIsAuthorized() {
        return isAuthorized;
    }

    public void setIsAuthorized(String isAuthorized) {
        this.isAuthorized = isAuthorized;
    }

    public String getIdField() {
        return idField;
    }

    public void setIdField(String idField) {
        this.idField = idField;
    }

    public String getIs_logic() {
        return is_logic;
    }

    public void setIs_logic(String is_logic) {
        this.is_logic = is_logic;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getCreate_time_str() {
        return createTime == null ? null : new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:S").format(createTime);
    }
}
